<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="unsubmit">基本信息</view>
			<view :class="['inv-h',Inv==1?'inv-h-se':'']" @click="submit">出入库</view>
		</view>

		<view class="" style="position: absolute;width: 100%;margin-top: 100upx">
			<view class="formPage" v-show="Inv==0">
				<form>
					<fromItem title="取样编号" :data="totalData.fSamplenostr" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="样品名称" :data="totalData.fSamplename" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="工程部位/用途" type="textarea" :data="totalData.fProjectlocation" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="制件日期" :data="totalData.fMakedates" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="强度等级" :data="totalData.fStrengthgrade" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="龄期(天)" :data="totalData.fSpecimenage" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="规定试验日期" :data="totalData.fPlantestdates" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="数量(组)" :data="totalData.fNum" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>





					<view class="cu-form-group" style="margin-bottom: 50upx;">
					</view>


					<div class="wrapper" v-if="appliance==1">
						<div class="list">
							<text class="text" @click="clickNum('3')">保存</text>
							<text class="text" @click="clickNum('4')">提交</text>
						</div>
					</div>
				</form>



			</view>

			<view class="formPage" v-show="Inv==1">
				<form>

					<view style="width: 100%;">
						<fromItem title="存放位置" :data="totalData.fPosition" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="入库日期" :data="totalData.fWarehousingdates" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="入库人员" :data="totalData.fWarehousingusername" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<!-- <view class="cu-form-group">
							<image src="@/static/Scope.png" mode=""
								style="width: 30upx;height: 30upx;vertical-align: middle;">
							</image>
							<view class="title">存放位置</view>
							<picker mode="multiSelector" @columnchange="bindMultiPickerColumnChange" :value="multiIndex"
								:range="positionData" :range-key="'fCuringno'">
								<view class="uni-input picker" :style="{color:fWorktypeindex>-1?'#555':'#a0a0a0'}">
							
									{{ fWorktypeindex > -1 ? formData.fPosition : '请选择' }}
								
								</view>
							</picker>
						</view> -->
						<cLabel title='出库日期' top="15upx" over="calc(5em + 15px)" :dataText='formData.fDeliverydates'
							must="must" :disabled="disabled" v-model='formData.fDeliverydates' mode='date1'
							:flagNum="flagNum" />
						<cLabel title='出库人员' v-model='formData.fDeliveryusername' :disabled="true"
							:dataText='formData.fDeliveryusername' rightIcon='' mode='text' />
						<cLabel title='试件数量' v-model='scanQRCode' :dataText='scanQRCode' rightIcon='' mode='text' />


						<view class="sampaleInfo"
							:style="{'background':item.status==0?'rgba(234,234,36,0.5)':item.status==1?'rgba(77,237,8,0.5)':'#fff'}"
							v-for="item in formData.itemsList" :key="item.fId">
							<view>{{item.fSampleitems}}</view>
							<view>{{item.fDeliveryitems==""?'待出库':'已出库'}}</view>
						</view>




					</view>

					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1">
						<div class="list">
							<text class="text" @click="clickNum('3')">保存</text>
							<text class="text" @click="clickNum('4')">提交</text>
						</div>
					</div>
				</form>
			</view>

			<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor" :width="width"
				:height="height" ref="loading" :custom="false" :type="1" @callback="callback()">
			</loading>
			<!-- 		<tki-tree ref="company" nodeKey="fCompanyid" rangeKey="fShortname" :selectParent="selectParent"
				:multiple="multiple" :range="companyTree" :foldAll="flod" @confirm="treeConfirm" @cancel="treeCancel">
			</tki-tree> -->

		</view>
	</view>
</template>
<script src="./index.js">
</script>
<style scoped lang="less">
	@import './index.less';
</style>
